//
//  TYZBasePickerView.h
//  BeautyIndustry
//
//  Created by tangbin on 2020/12/25.
//

#import "TYZBaseView.h"
#import "EDSCustomLeftRightBtnView.h"

NS_ASSUME_NONNULL_BEGIN

#define kTYZBasePickerViewHeight (216 + 44 + IPHONEX_BOTTOM_SPACE)

@interface TYZBasePickerView : TYZBaseView
@property (nonatomic, strong, readonly) EDSCustomLeftRightBtnView *topView;
@property (nonatomic, copy) NSString *title;

@property (nonatomic, assign) BOOL autoSelected;


/// Description
/// @param frame frame description
/// @param type 0 表示只有一组数据；1表示有两组数据
- (instancetype)initWithFrame:(CGRect)frame type:(NSInteger)type;

/// 更新数据
/// @param data data description
/// @param type 0 表示只有一组数据；1表示有两组数据
//- (void)updateWithViewData:(id)data type:(NSInteger)type;

/// 显示选中的数据
/// @param list list description
- (void)updateSelectData:(NSArray *)list;

/// 重置
- (void)resetRealodData;

/// 移动到指定的位置
/// @param index index description
- (void)scrollPosition:(NSInteger)index;

- (void)show;
- (void)hide;
@end

NS_ASSUME_NONNULL_END
